import _fetch from "api_xukaiyu/fetch";
/**
 * 查询当前用户嘿豆状态
 */
export function user_status(data) {
  return _fetch({
    url: "app/beans/user_status",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * undefined
 */
export function query_user_beans(data) {
  return _fetch({
    url: "app/beans/query_user_beans",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 签到获得嘿豆
 */
export function sign_add_beans(data) {
  return _fetch({
    url: "app/beans/sign_add_beans",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询流水列表
 * @param { Object } data 请求参数
 * {
 *   flowType undefined
 *   page undefined
 *   pageSize undefined
 * }
 * @responses { Object } 返回参数
 * {
 *   changeReason 变更原因
 *   gmtCreated 创建时间
 *   beanNums 嘿豆数量
 *   goodsName 商品名称
 * }
 */
export function flow_list(data) {
  return _fetch({
    url: "app/beans/flow_list",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 嘿豆使用规则
 */
export function bean_rule(data) {
  return _fetch({
    url: "app/beans/bean_rule",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 嘿豆获取比例
 */
export function bean_proportion(data) {
  return _fetch({
    url: "app/beans/bean_proportion",
    method: "POST",
    data: data,
    headers: {}
  });
}